<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<!-- Ne pas oublier cette ligne sinon tous les tags de la JSTL seront ignorés ! -->
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
  <head>
    <title>Jeux vidéos</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <%@include file="include.jsp" %>
  </head>
<body>
  <div id="container">
       <%@include file="header.jsp" %>
      <div id="gauche">
         <%@include file="gauche.jsp" %>
      </div>
      <div id="centre">
      <c:choose>
          <c:when test='${UserIsConnected}'>   
              <form action="Compte" method="post" id="formEmail">
                  <fieldset>
                      <legend>Informations de connexion</legend>
                      <span id="messageConfirmation">${requestScope['messageConfirmation']}</span>
                      <p>
                        <label for="email_i">Votre email actuel :  </label><input readonly="readonly" type="text" id="email_i" name="email_i" class="required email" value="${Customer.email}" />
                      </p>

                        <label for="new_email_i">Entrez votre nouvel email : </label><input type="text" id="new_email_i" name="new_email_i" class="required email" value="" />
                      </p>
                      <p>
                        <label for="confirm_new_email_i">Confirmez votre nouvel email : </label><input type="text" id="confirm_new_email_i" name="confirm_new_email_i" class="required email" value="" />
                      </p>

                      <p class="submit">
                          <input type="hidden" name="action" value="modifierEmail" />
                          <input type="submit" name="modifierEmail" id="modifierEmail" class="submit" value="Valider"/>
                      </p>
                  </fieldset>
              </form> 
          </c:when>
          <c:otherwise>
              <span class='error'>Vous devez vous connecter pour acceder à votre compte.</span>
          </c:otherwise>
      </c:choose> 
      </div>
      <div id="footer"></div>
  </div>
</body>
</html>
